var express = require('express');
var router = express.Router();
let knex = require('../common/getknex')();
/* GET home page. */
router.get('/', async (req, res, next) => {
  let info = await knex('data').orderBy('id', 'desc').limit(1);
  res.json(info);
  // res.render('index', {
  //   title: '基于物联网的道路信息采集系统'
  //
  // });
});

module.exports = router;
